]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
grabHelper: Use a round trip for focusing the default window
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 11 Mar 2013 21:24:52 +0000 (17:24 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 12 Mar 2013 15:58:50 +0000 (11:58 -0400)
We may release the focus grab at any time, so it's not guaranteed
we'll be in event processing. In particular, hovering over and out
of a notification will cause this to happen, as the notification
is hidden on a timeout.

https://bugzilla.gnome.org/show_bug.cgi?id=695659

js/ui/grabHelper.js

index 1543c14cdf441839f4c0fd1c983a9dab2ab3964a..2547da67981647d464dfaec76dbd2b3e7844d5eb 100644 (file)
@@ -248,7 +248,7 @@ const GrabHelper = new Lang.Class({
                 global.set_stage_input_mode(Shell.StageInputMode.FOCUSED);
         }
 
-        global.screen.focus_default_window(global.get_current_time());
+        global.screen.focus_default_window(global.display.get_current_time_roundtrip());
     },
 
     // ignoreRelease: